package Entity;

import java.io.Serializable;
import java.util.ArrayList;

/** this class Create new Instance of category*/

public class Category implements Serializable{

	
	private static final long serialVersionUID = 42L;
	
	/**attributes for category*/
	private String typeID; 
	private String typeName;
	private String categoryName;
	private String productID;
	public ArrayList<Category> categoryList;
	
	/** default constructor*/
	public Category()
	{

	}
	public Category(String TypeID, String TypeName)
	{
		setTypeID(TypeID);
		setTypeName(TypeName);
	}
	
	/** Full constructor with all attributes*/
	public Category(String TypeID, String CategoryName, String TypeName)
	{
		setTypeID(TypeID);
		setTypeName(TypeName);
		setCategoryName(CategoryName);
		categoryList = new ArrayList<Category>();
	}
	
	/** set functions*/
	public void setTypeID( String TypeID) 
	{
		this.typeID=TypeID;
	}
	
	public void setTypeName( String TypeName) 
	{
		this.typeName=TypeName;
	}
	
	public void setCategoryName( String CategoryName) 
	{
		this.categoryName=CategoryName;
	}
	public void setProductID( String productID) 
	{
		this.productID=productID;
	}
	
	/** get functions*/
	public String getCategoryName() 
	{
			return this.categoryName;
	}
	
	public String getTypeName() 
	{
			return this.typeName;
	}
	
	public String getTypeId() 
	{
			return this.typeID;
	}
	
	public String getProductID() 
	{
		return this.productID;
	}

}